package com.api.apicommon.service;


import com.api.apicommon.model.entity.UserInterfaceInfo;

public interface InnerUserInterfaceInfoService  {

    /**
     * 调用次数+1
     * @param interfaceInfoId
     * @param userId
     */
    boolean invokeCount(long interfaceInfoId,long userId);

    /**
     * 获取剩余调用次数
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    UserInterfaceInfo getLeftNum(long interfaceInfoId, long userId);
}
